package com.jzo2o.orders.manager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.orders.base.model.domain.Orders;
import com.jzo2o.orders.base.model.domain.OrdersCanceled;
import com.jzo2o.orders.manager.model.dto.OrderCancelDTO;

/**
 * <p>
 *  订单取消服务类
 * </p>
 *
 * @author itcast
 * @since 2023-08-19
 */
public interface IOrdersCanceledService extends IService<OrdersCanceled> {
    /**
     * 取消订单
     */
    void cancel(OrderCancelDTO orderCancelDTO);

    /**
     * 系统取消超时订单(无前置判断)
     * <br><b>仅内部使用!!!</b>
     */
    void cancelPayOverTimeOrder(Orders order);
}